<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>任务列表</title>
    <link rel="stylesheet" href="/static/css/layui.css" media="all">
</head>
<body style="padding-left: 10px;padding-right: 10px;">
<div class="searchTable">
    <form class="layui-form" onsubmit="return false">
        <div class="layui-form-item" style="width:25%">
            <label class="layui-form-label">年份：</label>
            <div class="layui-input-block">
                <select class="layui-select" id="year" lay-filter="search">

                </select>
                <span style="display: none" id="yearText"></span>
            </div>
        </div>
        <button id="searchBtn" style="margin-left: 10%;display: none" class="layui-btn" data-type="reload"></button>
    </form>
</div>
<table class="layui-hide" id="pushList" lay-filter="pushList"></table>
<!-- 操作栏的两个内容 -->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-border-blue layui-btn-primary" lay-event="show">查看年度工作总结</a>
<!--    {{#  if(d.status == "0"){ }}-->
<!--    <a class="layui-btn layui-btn-primary layui-border-red layui-btn-xs" lay-event="del">设为不可用</a>-->
<!--    {{#  } }}-->
<!--    {{#  if(d.status == "0"){ }}-->
<!--    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="isT">设为可用</a>-->
<!--    {{#  } }}-->
<!--    {{#  if(d.status == "0"){ }}-->
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="cDelete">彻底删除</a>-->
<!--    {{#  } }}-->
</script>
<!-- 头部工具栏按钮 -->
<script type="text/html" id="toolbarDemo1">
</script>
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加任务</button>
        <!--        <a id="delBtn" class="layui-btn layui-btn-primary layui-border-red layui-btn-sm" lay-event="delete">设为不可用</a>-->
        <a id="context" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="context">编辑公告</a>
        <!--        <a id="cDeleteBtn" style="display: none" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="cDelete">彻底删除</a>-->
    </div>
</script>
<form class="layui-form" style="display: none" id="commentForm" onsubmit="return false" lay-filter="pushForm">
    <div class="layui-form-item" style="width: 460px;margin-top: 20px">
        <label class="layui-form-label">选择部门：</label>
        <div class="layui-input-block">
            <select id="uid" name="departmentUid" class="layui-input" lay-filter="uid" lay-search>
                <option selected="selected" value="" disabled>请选择部门(可搜索)</option>
                <option th:each="unit:${session.unitList}" th:value="${unit.uid}" th:text="${unit.name}"></option>
            </select>
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="width: 460px;margin-top: 20px">
        <label class="layui-form-label">上传报告：</label>
        <button type="button" class="layui-btn" id="uploadFile">
            <i class="layui-icon">&#xe67c;</i>点击上传
        </button>
        <span id="showName"></span>
    </div>
    <br>
    <br>
    <div class="layui-form-item" style="margin-top: -20px;margin-bottom: 10px">
        <div class="layui-inline">
            <label class="layui-form-label">日期范围</label>
            <div class="layui-inline" id="time">
                <div class="layui-input-inline">
                    <input type="text" name="startTime" autocomplete="off" id="test-startDate-1" class="layui-input" placeholder="开始日期">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline">
                    <input type="text" name="endTime" autocomplete="off" id="test-endDate-1" class="layui-input" placeholder="结束日期">
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="year" id="formYear"/>
    <input type="hidden" name="fileName" id="fileName"/>
    <input type="hidden" name="uid" id="pushUid"/>
    <br><br><br>
    <center><h3 style="color: brown;margin-top: 15px">将对所有启用的教学单位发起评分任务</h3></center>
    <span id="uidText" style="display: none"></span>
<!--    <div style="margin-left: 30px;" id="test3" class="demo-transfer"></div>-->
</form>
<form class="layui-form" style="display: none" id="contextForm" onsubmit="return false" lay-filter="contextForm">
    <br><br><br>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">编辑评分调查公告栏</label>
        <div class="layui-input-block" style="margin-right: 80px;">
            <textarea placeholder="请输入内容" class="layui-textarea" name="context" th:text="${session.scoreText}"></textarea>
        </div>
    </div>
</form>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend id="show">评分细则</legend>
</fieldset>
<table class="layui-hide" id="personList" lay-filter="personList"></table>

<script src="/static/js/jquery-3.1.1.min.js"></script>
<script src="/static/layui.js" type="text/javascript"></script>
<script src="/static/js/push.js" type="text/javascript"></script>
</body>
</html>